package com.lagou.homework.dao;

import com.lagou.homework.pojo.TokenPojo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface TokenDao extends JpaRepository<TokenPojo,Integer> {
    @Query(value = "select email from lagou_token where token = ?1",nativeQuery = true)
    public String findTokenBySql(String token);
}
